// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.CostSupplementForm;
import com.fowo.api.model.cost.supplement.form.CostSupplementFormItemVo;
import com.fowo.api.model.cost.supplement.form.CostSupplementFormSearchParamPo;
import com.fowo.api.model.cost.supplement.form.CostSupplementFormVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CostSupplementFormMapper
  extends BaseMapper<CostSupplementForm> {
  Page<CostSupplementFormItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") CostSupplementFormSearchParamPo search
  );
  List<OptionItem<CostSupplementFormItemVo>> searchOptions(
    @Param("search") CostSupplementFormSearchParamPo search
  );
  List<CostSupplementFormItemVo> search(
    @Param("search") CostSupplementFormSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") CostSupplementFormSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") CostSupplementFormSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") CostSupplementFormSearchParamPo search);
  Long getIdByOrderNumber(@Param("orderNumber") String orderNumber);

  List<Long> getIdsByOrderNumber(@Param("list") List<String> list);

  String getOrderNumberById(@Param("id") Long id);

  List<Map<String, Object>> getOrderNumberByIds(@Param("ids") List<Long> ids);
  CostSupplementFormVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<CostSupplementFormItemVo> vAll(
    @Param("search") CostSupplementFormSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> vAllIds(@Param("search") CostSupplementFormSearchParamPo search);

  /**
   * 获取全部的总数
   */
  Long vAllCount(@Param("search") CostSupplementFormSearchParamPo search);

  /**
   * 全部分页
   */
  Page<CostSupplementFormItemVo> vAllPage(
    @Param("page") Page page,
    @Param("search") CostSupplementFormSearchParamPo search
  );
  Date vAllLastUpdateTime(
    @Param("search") CostSupplementFormSearchParamPo search
  );
  /**
   * 待审批
   */
  List<CostSupplementFormItemVo> vApprove(
    @Param("search") CostSupplementFormSearchParamPo search
  );

  /**
   * 获取待审批编号列表
   */
  List<Long> vApproveIds(
    @Param("search") CostSupplementFormSearchParamPo search
  );

  /**
   * 获取待审批的总数
   */
  Long vApproveCount(@Param("search") CostSupplementFormSearchParamPo search);

  /**
   * 待审批分页
   */
  Page<CostSupplementFormItemVo> vApprovePage(
    @Param("page") Page page,
    @Param("search") CostSupplementFormSearchParamPo search
  );
  Date vApproveLastUpdateTime(
    @Param("search") CostSupplementFormSearchParamPo search
  );
  /**
   * 已处理
   */
  List<CostSupplementFormItemVo> vDone(
    @Param("search") CostSupplementFormSearchParamPo search
  );

  /**
   * 获取已处理编号列表
   */
  List<Long> vDoneIds(@Param("search") CostSupplementFormSearchParamPo search);

  /**
   * 获取已处理的总数
   */
  Long vDoneCount(@Param("search") CostSupplementFormSearchParamPo search);

  /**
   * 已处理分页
   */
  Page<CostSupplementFormItemVo> vDonePage(
    @Param("page") Page page,
    @Param("search") CostSupplementFormSearchParamPo search
  );
  Date vDoneLastUpdateTime(
    @Param("search") CostSupplementFormSearchParamPo search
  );
  /**
   * 已驳回
   */
  List<CostSupplementFormItemVo> vReject(
    @Param("search") CostSupplementFormSearchParamPo search
  );

  /**
   * 获取已驳回编号列表
   */
  List<Long> vRejectIds(
    @Param("search") CostSupplementFormSearchParamPo search
  );

  /**
   * 获取已驳回的总数
   */
  Long vRejectCount(@Param("search") CostSupplementFormSearchParamPo search);

  /**
   * 已驳回分页
   */
  Page<CostSupplementFormItemVo> vRejectPage(
    @Param("page") Page page,
    @Param("search") CostSupplementFormSearchParamPo search
  );
  Date vRejectLastUpdateTime(
    @Param("search") CostSupplementFormSearchParamPo search
  );
}
